import React, { Component } from 'react'
import { Button } from 'antd';
export default class Home extends Component {
  
  render() {
    const getList=()=>{
      axios.get('http://localhost:8000/posts').then(res=>{
        console.log(res)
      })
    }
    return (
      <div>
        Home
          <Button type="primary" onClick={()=>{
            getList
          }}>Button</Button>
      </div>
    )
  }
}
